import {get, post, axios, put, Delete} from './strategyApi'

export const ajax = {
  //新增apiFox
  apiBind: params => post('/api/okx-bot/v1/api-key/apiBind', params),
  //新增用户
  addUser: params => post('/api/okx-bot/v1/user', params),
  //刷新用户余额
  refreshById: params => post('/api/okx-bot/v1/api-key/refreshById', params),
  //用户修改
  putUser: params => put('/api/okx-bot/v1/user', params),
  //用户列表查询
  searchPage: params => get('/api/okx-bot/v1/user/page', params),
  //查询用户当前登录信息
  getOneByToken: params => get('/api/okx-bot/v1/user/getOneByToken', params),
  //用户自主修改密码
  updatePwd: params => post('/api/okx-bot/v1/user/updatePwd', params),
  //标签枚举查询
  lableList: params => get('api/okx-bot/v1/label/list', params),
  //删除用户
  // deleteUser: params => get('/label/list', params),
  //重置用户密码
  resetPwd: params => post('/api/okx-bot/v1/user/resetPwd', params),
  //新增标签
  addlabel: params => post('/api/okx-bot/v1/label', params),
  //标签列表查询
  searchlabel: params => get('/api/okx-bot/v1/label/page', params),
  //修改标签
  updateLabel: params => put('/api/okx-bot/v1/label', params),
  //删除标签
  DeleteLabel: params => post('/api/okx-bot/v1/label/del', params),
  //查询Api列表
  apiList: params => get('/api/okx-bot/v1/api-key/list', params),
  //删除Api配置
  DelApi: params => post('api/okx-bot/v1/api-key/del', params),
  //编辑Api配置
  putApi: params => put('/api/okx-bot/v1/api-key/', params),
  //增加策略
  addTactics: params => post('/api/okx-bot/v1/tactics', params),
  //策略列表
  searchTactics: params => get('/api/okx-bot/v1/tactics/list', params),
  //删除策略
  delTactics: params => post('/api/okx-bot/v1/tactics/del', params),
  //编辑策略
  putTactics: params => put('/api/okx-bot/v1/tactics', params),
//  新增会员有效期
  addExpiration: params => post('/api/okx-bot/v1/user/addExpiration', params),

  //  币种查询
  getQueryList: params => post('api/okx-bot/v1/ccy-config/query-inst-list', params),
//  启用虚拟币
  enableBtc: params => post('/api/okx-bot/v1/ccy-config/enable-ccy', params),
  //  取消启用虚拟币
  unenableBtc: params => post('/api/okx-bot/v1/ccy-config/un-enable-ccy', params),
  //  修改虚拟币参数
  putenableBtc: params => post('/api/okx-bot/v1/ccy-config/set-inst-info', params),
  // 查询热门币种
  queryRecommended: params => post('/api/okx-bot/v1/ccy-config/query-recommended-inst-list', params),
  // 查询热门币种
  getRecommended: params => post('/api/okx-bot/v1/ccy-config/getRecommended', params),

//  基本配置
//   基本配置分页查询
  getConfigPage: params => get('/api/okx-bot/v1/ccyConfig/page', params),
  //   编辑配置
  putConfig: params => put('/api/okx-bot/v1/ccyConfig', params),
  //   编辑配置
  editAllCcyConfig: params => put('/api/okx-bot/v1/ccyConfig/editAllCcyConfig', params),
}
